package com.globallogic.dailyplanner.webservice.impl;

import javax.jws.WebMethod;
import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.context.support.SpringBeanAutowiringSupport;

import com.globallogic.dailyplanner.dto.RoleEnum;
import com.globallogic.dailyplanner.service.UserService;
import com.globallogic.dailyplanner.webservice.UserWS;

@WebService(serviceName="UserWebService", endpointInterface="com.globallogic.dailyplanner.webservice.UserWS")
public class UserWSImpl extends SpringBeanAutowiringSupport implements UserWS{
	@Autowired
	private UserService userService;
	
	@WebMethod
	@Override
	public long getUserCountInfo(boolean status, RoleEnum role){
		return userService.getUsersByStatusAndRole(status, role);
	}

}
